
#ifndef __CORE_BUFF_H__
#define __CORE_BUFF_H__
#include <WinSock2.h>
#include <string>
class CoreBuff
{
public:
	char* buff;
	int pos;
	int buffsize;
	int initsize;
public:
	CoreBuff(int size);
	~CoreBuff();

	char* getBuff();
	int getBuffSize();
	int getPos();
	void addPos(int add);
	int getLastSize();

	void push(const char* data,int len);
	void pop(int len);

	int read(int socketfd);
	int write(int socketfd);
};

#endif
